package cn.cocho.android.mc.util;



/**
 * 公共的环境变量
 * 
 * @author HAIKANG SONG
 * @time 2013-4-18上午11:53:01
 */
public class CommonContexts {

	/**
	 * 公司ID
	 */
	protected static String corpCode;

	/**
	 * 用户ID
	 */
	protected static String userId;

	/**
	 * 登录名
	 */
	protected static String loginName;

	/**
	 * 用户名
	 */
	protected static String userName;
	
	/**
	 * 用户密码（使用MD5加密过的字符串）
	 */
	protected static String password;

	/**
	 * 登录成功之后获得的Token值
	 */
	protected static String token;
	

	/**
	 * 屏幕高度
	 */
	protected static int screenWidth;

	/**
	 * 屏幕宽度
	 */
	protected static int screenHeight;

	/**
	 * 文件操作时的缓冲流大小
	 */
	public static int fileBuffer = 1024 * 4;

	/**
	 * 编码
	 */
	public static String encode = "UTF-8";

	/**
	 * 当前项目指向公司的名称
	 */
	public static String companyName = "defaults";

    /**
     * app当前所处的模式
     */
    public static AppModel appModel = AppModel.DEVELOP;

    public enum AppModel {
        DEMO,//演示版
        DEVELOP,//开发版
        RELEASE//发布版
    }

	public static String getCorpCode() {
		return corpCode;
	}

	public static void setCorpCode(String corpCode) {
		CommonContexts.corpCode = corpCode;
	}

	public static String getUserId() {
		return userId;
	}

	public static void setUserId(String userId) {
		CommonContexts.userId = userId;
	}

	public static String getLoginName() {
		return loginName;
	}

	public static void setLoginName(String loginName) {
		CommonContexts.loginName = loginName;
	}

	public static String getUserName() {
		return userName;
	}

	public static void setUserName(String userName) {
		CommonContexts.userName = userName;
	}
	
	public static String getPassword() {
		return password;
	}

	public static void setPassword(String password) {
		CommonContexts.password = password;
	}
	
	public static String getToken() {
		return token;
	}

	public static void setToken(String token) {
		CommonContexts.token = token;
	}

	public static int getScreenWidth() {
		return screenWidth;
	}

	public static void setScreenWidth(int screenWidth) {
		CommonContexts.screenWidth = screenWidth;
	}

	public static int getScreenHeight() {
		return screenHeight;
	}

	public static void setScreenHeight(int screenHeight) {
		CommonContexts.screenHeight = screenHeight;
	}

}
